############################################################
#
# Makefile     : Documentation Makefile
#
# $Id: Makefile 402 2008-08-26 05:09:52Z akamthe $
#
############################################################

DOCUMENT =	resume

LATEX	 =	latex
DVIPS	 = 	dvips
BIBTEX	 =	bibtex
PS2PDF	 =	ps2pdf

default: all

all: dvi ps pdf

$(DOCUMENT).dvi dvi: $(DOCUMENT).tex
	$(LATEX) $(DOCUMENT).tex
#	$(BIBTEX) $(DOCUMENT).aux
	$(LATEX) $(DOCUMENT).tex
	$(LATEX) $(DOCUMENT).tex

$(DOCUMENT).aux aux: $(DOCUMENT).tex
	$(LATEX) $(DOCUMENT).tex

$(DOCUMENT).ps ps: $(DOCUMENT).dvi
	$(DVIPS) -t Letter -o $(DOCUMENT).ps $(DOCUMENT).dvi

$(DOCUMENT).pps pps: $(DOCUMENT).dvi
	$(DVIPS) -t Letter -Ppdf -G0 -o $(DOCUMENT).pps $(DOCUMENT).dvi

$(DOCUMENT).pdf pdf: $(DOCUMENT).pps $(DOCUMENT).dvi
	$(PS2PDF) $(DOCUMENT).pps $(DOCUMENT).pdf

clean:
	-rm -f *.bak *.bck *.aux *.pdf *.pps *.ps *.dvi *.bbl *.blg *.log *.toc *~
